// 根据id获取文章列表
let id = getId()
$.ajax({
  type: 'get',
  url: '/posts/category/'+id,
  success:function(response) {
    let html = template('lastedTpl', {data: response})
    $('.article').html(html)
  }
})